import { mongo } from "../mogoConfig";

const db = mongo.db("my_test")
db.collection("inventory")
    .insertOne({
        item: 'canvas',
        qty: 100,
        tags: ['cotton'],
        size: { h: 28, w: 35.5, uom: 'cm' }
    }).then(result => {
        console.log(result)
    }).catch(error => {
        console.log(error)
    }).finally(() => {
        mongo.close()
    })

console.log("执行结束")